how to do the Pythagorean theorem